/* 优化后的登录/注册页面样式 */

.login-container {
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-dialog {
    width: 450px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题 */
.login-dialog h3 {
    text-align: center;
    padding: 20px 0 30px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

/* 针对一行设置样式 */
.login-dialog .row {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.login-dialog .row span {
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 16px;
}

#user_name, #password {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#user_name:focus, #password:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#submit {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    color: white;
    border: none;
    outline: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

#submit:hover {
    background: linear-gradient(135deg, #3a7bc8, #1a2a3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
}

#submit:active {
    background: linear-gradient(135deg, #2c3e50, #4a90e2);
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.3);
}

/* 跳转提醒样式 */
.login-dialog .row p {
    color: #7f8c8d;
    font-size: 14px;
}

.login-dialog .row a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-dialog .row a:hover {
    color: #3a7bc8;
    text-decoration: underline;
}